package com.ailesson.order.model.reply;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(name = "订单确认返回值")
@Data
public class OrderConfirmReply {
    @Schema(name = "courseId",description = "课程id")
    private Long courseId;

    @Schema(name = "courseName",description = "课程名称")
    private String courseName;

    @Schema(name = "cover",description = "课程封面图片路径")
    private String cover;

    @Schema(name = "durationSum",description = "总时长:分钟")
    private Integer durationSum;

    @Schema(name = "progressSum",description = "观看进度总时长:分钟")
    private Integer progressSum;

    @Schema(name = "progress",description = "观看进度")
    private Integer progress;
    /**
     * 原始金额
     */
    @Schema(name = "originAmount",description = "原始金额")
    private BigDecimal originAmount;
    /**
     * 优惠券减免
     */
    @Schema(name = "couponReduce",description = "优惠券减免")
    private BigDecimal couponReduce;
    /**
     * 最终金额
     */
    @Schema(name = "finalAmount",description = "最终金额")
    private BigDecimal finalAmount;
    /**
     * 订单状态
     */
    @Schema(name = "orderStatus",description = "订单状态")
    private String orderStatus;
    /**
     * 订单交易编号（第三方支付用)
     */
    @Schema(name = "outTradeNo",description = "观看进度")
    private String outTradeNo;

    /**
     * 支付时间
     */
    @Schema(name = "payTime",description = "支付时间")
    private LocalDateTime payTime;

    @Schema(name = "createTime",description = "创建时间")
    private LocalDateTime createTime;
}
